package com.dao;

import com.model._do.SignUpDO;
import com.model._do.UserDO;
import com.model.dto.SignedSearchDTO;
import com.model.dto.SuperviseDTO.Search.UserInfoSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository("userDAO")
public interface UserDAO {

    public UserDO getUserByUserId(String userId);

    public void saveUser(UserDO user);

    public void updateUserName(UserDO user);

    public void updateUserPhone(UserDO user);

    public void updateUserLocation(UserDO user);

    public void updateUserDiscription(UserDO user);

    public void updateUserType(UserDO user);

    public List<UserDO> selectNearDoctor(HashMap<String, String> hashMap);

    public List<UserDO> getUserByUserType(UserInfoSearch search);
}
